//
//  AppDelegate.swift
//  Swift微博
//
//  Created by 陈竹 on 16/2/21.
//  Copyright © 2016年 陈竹. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        print(UserAccount.sharedUserAccount)
        print(NSDate())
        //设置全局外观
        setUpAppearance()
        
        window=UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor=UIColor.whiteColor()
        window?.rootViewController=MainViewController()
        window?.makeKeyAndVisible()
        return true
    }
}
extension AppDelegate{
///  设置全局外观，一经设置全局有效
    private func setUpAppearance(){
        UINavigationBar.appearance().tintColor=CZApperanceTintColor
        UITabBar.appearance().tintColor=CZApperanceTintColor
        
    
    }

}


